# == Schema Information
#
# Table name: stocks
#
#  id           :integer          not null, primary key
#  amount       :integer
#  amount_limit :integer
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#  unit         :integer          default("per_square")
#  product_id   :integer
#

class Stock < ApplicationRecord

  enum unit: [:per_square, :per_amount]

  belongs_to :product
end
